package org.witsoft.demo.graphql.repository;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.witsoft.demo.graphql.entity.Book;

import java.util.List;

public interface BookRepository extends JpaRepository<Book,Long> {

//    @Query(value="select * from book where id > :id limit :size",nativeQuery=true)
    List<Book> findByIdGreaterThan(Long id, Pageable pageable);
}
